﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SiteNavControl.ascx.cs"
    Inherits="Warehouse.Web.UserControls.SiteNavControl" %>
<ul id="_sitenav" class="sitenav">
    <uc:AuthorityControl runat="server" TargetPage="/Purchase/Default.aspx" Action="View">
        <li>
            <asp:HyperLink ID="HyperLink4" NavigateUrl="~/Purchase/Default.aspx" runat="server">进货管理</asp:HyperLink></li>
    </uc:AuthorityControl>
    <uc:AuthorityControl runat="server" TargetPage="/Export/Default.aspx" Action="View">
        <li>
            <asp:HyperLink ID="HyperLink8" NavigateUrl="~/Sales/Default.aspx" runat="server">销售管理</asp:HyperLink></li>
    </uc:AuthorityControl>
    <uc:AuthorityControl runat="server" TargetPage="/Inventory/Default.aspx" Action="View">
        <li>
            <asp:HyperLink ID="HyperLink9" NavigateUrl="~/Inventory/Default.aspx" runat="server">库存管理</asp:HyperLink></li>
    </uc:AuthorityControl>
    <uc:AuthorityControl runat="server" TargetPage="/Report/Default.aspx" Action="View">
        <li>
            <asp:HyperLink ID="HyperLink2" NavigateUrl="~/Report/Default.aspx" runat="server">报表统计</asp:HyperLink></li>
    </uc:AuthorityControl>
    <uc:AuthorityControl runat="server" TargetPage="/Management/Default.aspx" Action="View">
        <li>
            <asp:HyperLink ID="HyperLink3" NavigateUrl="~/Management/Default.aspx" runat="server">系统管理</asp:HyperLink></li>
    </uc:AuthorityControl>
</ul>

<script type="text/javascript">
    var ul = document.getElementById("_sitenav");
    lis = ul.getElementsByTagName("LI");
    lis[0].className = "first";
    lis[lis.length - 1].className = "last";
</script>

